package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Role;

import java.util.List;

public interface RoleService {

    void save(Role role);

    void delete(String[] ids);

    void update(Role role);

    Role findById(String id);

    List<Role> findAll();


    PageInfo findAll(int page,int size);

    void updateRolePermission(String roleId, String permissionIds);

    List<Role> findAllRoleByUserId(String userId);

    PageInfo findByName(int page,int size,String name);
}

